package com.shiroha.video.pojo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.shiroha.common.handler.UUIDTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.UUID;

/**
 * 评论表
 */
@Data
@Table(value = "comment", schema = "public")
public class Comment {
    private Long id;                // 评论ID
    private Long workId;            // 作品ID
    @Column(typeHandler = UUIDTypeHandler.class)
    private UUID userId;            // 用户ID
    private String content;         // 评论内容
    private Long parentId;          // 父评论ID
    private boolean isTop;          // 是否置顶
    private boolean isDeleted;      // 逻辑删除
    private LocalDateTime createAt;
}
